package com.study.selection.dao;

import com.study.selection.model.Student;
import com.study.selection.model.Teacher;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherDao {

    List<Teacher> findAll();

    List<Teacher> findByKey(String key);

    int addTeacher(Teacher teacher);
    //根据学院编号获取对象

    List<Teacher> getByCollegeId(int collegeId);
    
    //根据教师编号获取对象

    Teacher getByTeacherId(int teacherId);

    int updateTeacher(Teacher teacher);
    // 逻辑删除
    int deleteTeacher(int teacherId);

}
